<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>



    +function(window){



        alert(a)
        var a=10;
        function a(){}
        alert(a)



    }(window)
</script>
</body>
</html>